//
//  SNHttpTool.h
//  顺农有机
//
//  Created by 冯贺 on 2018/1/12.
//  Copyright © 2018年 冯贺. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SNHttpTool : NSObject

+ (void)getWithUrl:(NSString *)url params:(NSMutableDictionary *)params View:(UIView *)view success:(void (^)(NSDictionary * responseDict, NSString * message))success failure:(void (^)(NSHTTPURLResponse * error))failure;

+ (void)postWithUrl:(NSString *)url params:(NSMutableDictionary *)params View:(UIView *)view success:(void (^)(NSDictionary * responseDict, NSString *message))success failure:(void (^)(NSHTTPURLResponse *error))failure;
//图片上传,支持多张
+(void)updateWithUrl:(NSString *)url params:(NSMutableDictionary *)params imageArr:(NSArray *)imgArr View:(UIView *)view success:(void (^)(NSDictionary *responseDict))success failure:(void (^)(NSHTTPURLResponse *error))failure;

+ (void)getWithZhenUrl:(NSString *)url params:(NSMutableDictionary *)params View:(UIView *)view success:(void (^)(NSDictionary * responseDict, NSString * message))success failure:(void (^)(NSHTTPURLResponse * error))failure;
@end
